<template>
  <div id="player-modal" class="modal" tabindex="1" role="dialog">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <player v-bind:play-id="'modal-player-div'" ref="player"></player>
      </div>
    </div>
  </div>
</template>

<script>
import Player from "./player.vue";
export default {
  components:{Player},
  name: "modal-player",
  data: function() {
    return {
      airPlayer: {},// 播放器实例
    }
  },
  methods: {
    playUrl(url) {
      let _this = this;
      _this.$refs.player.playUrl(url);
      $("#player-modal").modal("show");
    }
  }
}
</script>

<style scoped>
#player-modal .modal-body {
  padding: 0;
}
</style>